package com.qf;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/*
杨威
2021/10/25
15:21
*/
@Component
public class TestTask {
    @Scheduled(cron = "* * * * * ?")
    public void task1(){
        System.out.println("定时任务执行了");

    }
}
